<template>
	<view>
		<view class="box" v-for="(v,i) in list">
			<view>{{v.name}}</view>
			<view class="box_word" @click="goppdq(v.brandId,v.id,v.type)">详细信息></view>
		</view>

	</view>
</template>

<script>
	import {jxsInfogetUserBrandList} from "../../../api/order.js"

	export default {
		data() {
			return {
				list:[]
			}
		},
		onShow() {
			this.getData()
		},
		methods: {
			cksj(){
				jxsInfogetShopInfo({id:this.id}).then(res=>{
					if(res.status!=200){
						uni.showToast({
							title:res.msg,
							icon:"none",
							duration:2000
						})
					}
					this.info=res.data
					console.log("info",this.info);
				})
			},

			
			
			getData(){
				jxsInfogetUserBrandList().then(res=>{
					if(res.status!=200){
						uni.showToast({
							title: res.msg,
							icon: 'none',
							duration: 2000
						}); 
						return
					}
					console.log("代理列表",res);
					this.list=res.data
				})
			},
			goppdq(brandId,id,type){
				console.log(brandId,id,type);
				uni.navigateTo({ url: '/pages/HzPages/PpdqView/PpdqView?brandId='+brandId+'&id='+id+"&type="+type});
			},
		}
	}
</script>

<style scoped lang="less">
	.box{

		width: 690upx;
		height: 70upx;
		margin: 0 auto;
		display: flex;
		justify-content: space-between;
		text-align: center;
		border-bottom: 1px solid rgba(0, 0, 0, 0.1);
		margin-top: 30upx;
	}
	.box_word{
		font-size: 17 upx;

		color: #0000004D;


	}
</style>
